<template>
    <div>
        <CaLayout>
            <template slot="main">
                <router-view />
            </template>
        </CaLayout>
    </div>
</template>
<script setup lang="ts">
import CaLayout from '../layouts/CaLayout.vue';
import { onMounted } from 'vue';
import { getUserProfile } from '@/requests/api/sys-user'
onMounted(async () => {
    const res: any = await getUserProfile()
    console.log('Home mounted', res);
    if (res.code === 200) {
        localStorage.setItem('user', JSON.stringify(res.data))
    }
});
</script>
<style lang="scss" scoped></style>